package com.eportal.api;

import net.sf.json.JSONObject;

public class MdOpenAddAgentJson extends MdOpenBaseJson{

	
	public static MdOpenAddAgentJson parse(String json){
		MdOpenAddAgentJson bean  = new MdOpenAddAgentJson();
		bean.setData(bean.new Agent());
		MdOpenBaseJson.parse(json,bean);
		if(bean.isSuccess()){
			JSONObject obj = JSONObject.fromObject(json);
			bean.getData().setAgtkey(obj.getString("agtkey"));	
			bean.getData().setAgtcode(obj.getString("agtcode"));
			bean.getData().setAppkey(obj.getString("appkey"));	
		}
		return bean;
	}
	
	private Agent data;
	
	
	
	public Agent getData() {
		return data;
	}



	public void setData(Agent data) {
		this.data = data;
	}



	 public class Agent{
		 Agent(){
			 
		 }
		private String agtkey;
		private String agtcode;
		private String appkey;
		/**
		 * agtkey  
		 * @return the agtkey
		 */
		public String getAgtkey() {
			return agtkey;
		}
		
		/**
		 * agtkey 
		 * @param agtkey
		 */
		public void setAgtkey(String agtkey) {
			this.agtkey = agtkey;
		}
		
		/**
		 * agtcode  
		 * @return the agtcode
		 */
		public String getAgtcode() {
			return agtcode;
		}
		
		/**
		 * agtcode 
		 * @param agtcode
		 */
		public void setAgtcode(String agtcode) {
			this.agtcode = agtcode;
		}
		
		/**
		 * appkey  
		 * @return the appkey
		 */
		public String getAppkey() {
			return appkey;
		}
		
		/**
		 * appkey 
		 * @param appkey
		 */
		public void setAppkey(String appkey) {
			this.appkey = appkey;
		}
		

		
		
		
	}
}
